From: Jo-Philipp Wich Date: Sun, 12 Aug 2012 12:34:30 +0000 (+0000) Subject: use HOST_STATIC_LINKING instead of hardcoding -static X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=06de2eceec0045bab0c121ed0698a5838d8b4fea;p=project%2Ffirmware-utils.git use HOST_STATIC_LINKING instead of hardcoding -static SVN-Revision: 33140 --- diff --git a/Makefile b/Makefile index 640dd23..2994660 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ include $(INCLUDE_DIR)/host-build.mk include $(INCLUDE_DIR)/kernel.mk define cc - $(HOSTCC) $(HOST_CFLAGS) -include endian.h -static -o $(HOST_BUILD_DIR)/bin/$(firstword $(1)) $(foreach src,$(1),src/$(src).c) $(2) + $(HOSTCC) $(HOST_CFLAGS) -include endian.h $(HOST_STATIC_LINKING) -o $(HOST_BUILD_DIR)/bin/$(firstword $(1)) $(foreach src,$(1),src/$(src).c) $(2) endef define Host/Compile